Add User-Specific Access Tests for Conversion Results (β Sandbox Passed) #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Feedback (click)
Description
This pull request adds user-specific access tests for conversion results in the
test_clinical.py
andtest_download.py
files. It simulates scenarios where a user tries to access their own conversion results or the results of another user. The server's response is checked to ensure that the appropriate access is granted or denied.Summary
test_clinical.py
to match the order inutils.py
test_conversion_results_access_by_other_user
totest_clinical.py
to simulate accessing conversion results of another usertest_conversion_results_access_by_owner
totest_clinical.py
to simulate accessing own conversion resultstest_download_access_by_owner
totest_download.py
to simulate downloading own conversion resultstest_download_access_by_other_user
totest_download.py
to simulate downloading results of another usertest_download_results_clinical_data_not_found
intest_download.py
to include assertions for response status code and messageFixes #11.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: